from django import forms

from apps.articles.models import Article
from apps.forms import FormMixin


class EditArticleForm(forms.ModelForm, FormMixin):
    category = forms.IntegerField()
    pk = forms.IntegerField()

    class Meta:
        model = Article
        exclude = ['category', 'author', 'pub_time']
